<?php

namespace app\models;

use Yii;

/**
 * This is the model class for table "{{%package_schedule}}".
 *
 * @property integer $id
 * @property integer $type
 * @property string $begin
 * @property string $end
 * @property string $request_ip
 * @property string $last_update
 */
class PackageSchedule extends \app\models\BaseAR
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return '{{%package_schedule}}';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['type'], 'integer'],
            [['begin', 'end', 'last_update'], 'safe'],
            [['request_ip'], 'string', 'max' => 15]
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'type' => 'Type',
            'begin' => 'Begin',
            'end' => 'End',
            'request_ip' => 'Request Ip',
            'last_update' => 'Last Update',
        ];
    }
}
